import request from '@/utils/request'
export function fetchList(params) {
  return request({
    url:'/product/brand/list/'+params.pageNum+'/'+params.pageSize,
    method:'post',
    data:params.queryObject
  })
}

export function brandAddProductCheckbox(params) {
  return request({
    url:'/product/brand/brandAddProductCheckbox',
    method:'post',
    params:params
  })
}
export function updateBrandGoods(params) {
  return request({
    url:'/product/brand/updateBrandGoods',
    method:'post',
    data:params
  })
}
export function getUnassignedBrand() {
  return request({
    url:'/product/brand/getUnassignedBrand',
    method:'post'
  })
}

export function updateStatus(id,params) {
  return request({
    url:'/flash/update/status/'+id,
    method:'post',
    params:params
  })
}
export function getBrandGoodsByProductAndBrand(params) {
  return request({
    url:'/product/brand/getBrandGoodsByProductAndBrand',
    method:'post',
    params:params
  })
}
export function deleteFlash(id) {
  return request({
    url:'/flash/delete/'+id,
    method:'post'
  })
}
export function createbrand(data) {
  return request({
    url:'/product/brand/add',
    method:'post',
    data:data
  })
}
export function updateFlash(id,data) {
  return request({
    url:'/flash/update/'+id,
    method:'post',
    data:data
  })
}
